package com.lin.fengxiu.service;

import com.lin.fengxiu.model.Activity;
import com.lin.fengxiu.model.Banner;
import com.lin.fengxiu.model.Category;
import com.lin.fengxiu.repository.ActivityRepository;
import com.lin.fengxiu.repository.CategoryRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @ClassName ActivityService
 * @Description TODO 活动业务层
 * @Author wushaopei
 * @Date 2021/3/17 6:34
 * @Version 1.0
 */
@Service
public class ActivityService {

    @Autowired
    private ActivityRepository activityRepository;

    public Activity getByName(String name) {
        return activityRepository.findByName(name);
    }
}
